//
// Created by LiuYou on 2021/7/18.
//

#include <iostream>
#include "Zombie.hpp"

Zombie::Zombie(int size, const std::string& name) : Monster( size, name ) {}

void Zombie::eat() {
    power += 10000;

}

void Zombie::fight() {
    const auto powerIncrement = size * 3;
    if (power > powerIncrement) {
        power -= powerIncrement;
        score += powerIncrement;
    }
}

void Zombie::makeNoise() {
    std::cout << "braaaiiinnnzzz!!!" << std::endl;

}

